<?php

require __DIR__."/../../lib/priority_exception.php";

class Priority_Exception_Test extends PHPUnit_Framework_TestCase {

	protected function setUp() {
		
		parent::setUp ();
		
	}
	protected function tearDown() {
		
		parent::tearDown ();
	}
	
	public function testPrioriryException(){
		
		$pe = new Priority_Exception("Hola mundo",2,null,1,"es");
		
		$test = $pe->get_construct_returned();
		
		$this->assertTrue($test["priority"]["level"] == 1);
	}
}

